//
//  IATConfig.swift
//  MMStudent
//
//  Created by Mac on 2018/4/19.
//  Copyright © 2018年 RanDian. All rights reserved.
//

import UIKit

fileprivate let PUTONGHUA = "mandarin"
fileprivate let YUEYU     = "cantonese"
fileprivate let ENGLISH   = "en_us"
fileprivate let CHINESE   = "zh_cn";
fileprivate let SICHUANESE  = "lmz";


class IATConfig: NSObject {
    
    static let sharedConfig = IATConfig()
    
    var speechTimeout = "5000"
    var vadEos = "3000"
    var vadBos = "3000";
    var dot = "0";
    var sampleRate = "16000";
    var language = ENGLISH;
    var accent = PUTONGHUA;
    var haveView = false;//默认是不dai界面的
    var accentNickName = ["粤语", "普通话", "英文", "四川话"]
    
    class func mandarin() -> String {
        return PUTONGHUA
    }
    
    class func cantonese() -> String {
        return YUEYU
    }
    
    class func chinese() -> String {
        return CHINESE
    }
    
    class func english() -> String {
        return ENGLISH
    }
    
    class func sichuanese() -> String {
        return SICHUANESE
    }
    
    class func lowSampleRate() -> String {
        return "8000"
    }
    
    class func highSampleRate() -> String {
        return "16000"
    }
    
    class func isDot() -> String {
        return "1"
    }
    
    class func noDot() -> String {
        return "0"
    }
    
}
